package com.shujia.day17;

public class Demo06LambdaFunction {
    public static void main(String[] args) {

        MyLambdaFunction<Integer> function = (Integer integer) -> {
            System.out.println(integer);
        };
        function.fun(1);

        MyLambdaFunction<Student> function2 = (Student student) -> {
            System.out.println(student);
        };
        function2.fun(new Student());

    }

}
interface MyLambdaFunction<T>{
    void fun(T t);
}